package com.api.syh56.shengyunhui.service;

import com.api.syh56.shengyunhui.entity.DedicatedLines;
import com.api.syh56.shengyunhui.entity.dto.DedicatedLinesDto;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface DedicatedLinesService extends IService<DedicatedLines> {
    void insert(DedicatedLinesDto dedicatedLinesDto);

    void deleteBy(DedicatedLines dedicatedLines);

    void updateBy(DedicatedLinesDto dedicatedLinesDto);

    List<DedicatedLines> selectAll();

    DedicatedLines selectBy(DedicatedLines dedicatedLines);

//    List<DedicatedLines> selectByCity(String originCity, String purCity);
    Page<DedicatedLines> selectByCity(String originCity, String purCity, Integer pageSize, Integer pageN);
}
